Ektron CMS400.Net Reference

>>Working with Ektron CSM400.NET Server Controls > Building Templated Server Controls

Building Templated Server Controls

The Micro-messaging Bookmarklet server control is template-based. This style has several advantages over non-template based controls. For example, you do not need to use separate files to control the page's appearance, such as an XSLT or .ekml file.

The Javascript used to render the Bookmarklet control is loaded into the Href property of the control's anchor tag, as shown below.

Below is the markup for the first Bookmarklet server control in bookmarklet.aspx.

<li>

<div class="controlWrapper">

<h3>Default</h3>

<CMS:micromessagingbookmarklet ID="bookmarkletDefault" runat="server" />

</div>

</li>

Because Bookmarklet is a template-based server control, you can enter any valid markup, and it will be rendered exactly as you entered it. As examples, you could enter the following items within the <div> tags that surround the control.

another Ektron CMS400.NET server control

any third-party server control

HTML syntax

databinding syntax

style classes

style tags, such as <strong>


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.